<cfoutput>
<h1>Generate Card</h1>


<div class="span-24">
	<h3>#homeTeam.TeamName# (#linkTo(text="view", route="redirecter", controller="teams", action="display", key=homeTeam.TeamID, params="SeasonID=#params.SeasonID#")#)
		
		vs.
		
		#awayTeam.TeamName# (#linkTo(text="view", route="teams", action="display", key=awayTeam.TeamID)#)</h3>
	
	#includePartial("/playerresults/fixtureGenerate")#
	
	<!---
	<table class="nostyle">
		<tr>
			<td colspan="3" style="text-align:center">Home Team</td>
			<td colspan="3" style="text-align:center">Away Team</td>
		</tr>
		<tr>
			<th>No</th>
			<th>Player</th>
			<th>Score</th>
			<th>No</th>
			<th>Player</th>
			<th>Score</th>
		</tr>
		<cfloop from="1" to="3" index="x">
		<!---<cfloop query="homeTeamPlayers" startrow="1" endrow="#homeTeamPlayers.recordCount#">--->
		<tr>
			<td>#homeTeamPlayers.Position[x]#</td>
		
			<td>
				#homeTeamPlayers.PlayerID[x]#	
				#homeTeamPlayers.FirstName[x]#
				#homeTeamPlayers.LastName[x]#
			</td>
		
			<td>
			 	#RandRange(1,6)#
			</td>
			<td>
				#awayTeamPlayers.Position[x]#
			</td>
			<td>
				#awayTeamPlayers.PlayerID[x]#			
				#awayTeamPlayers.FirstName[x]#
				#awayTeamPlayers.LastName[x]#
	 		</td>
		
			<td>
			 	#RandRange(1,6)#
			</td>
		</tr>
		</cfloop>		
	</table>
	--->
</div>

<!---
<div class="span-12">
	<h3>#awayTeam.TeamName# (#linkTo(text="view", route="teams", action="display", key=awayTeam.TeamID)#)</h3>


	
	<table class="nostyle">
		<tr>
			<th>No</th>
			<th>Player</th>
			<th>Score</th>
		</tr>
		<cfloop query="awayTeamPlayers" startrow="1" endrow="#awayTeamPlayers.recordCount#">
			<td>
				#awayTeamPlayers.Position#
			</td>
			<td>
				#awayTeamPlayers.PlayerID#			
				#awayTeamPlayers.FirstName#
				#awayTeamPlayers.LastName#
	 		</td>
		
			<td>
			 	#RandRange(1,6)#
			</td>
		</tr>
		</cfloop>
	</table>
		
</div>
--->

<!---			
	#errorMessagesFor("result")#

	#startFormTag(action="create")#
														
		#includePartial("form")#						

		#submitTag()#
		
	#endFormTag()#	
	
--->
<div class="span-24">
	#linkTo(text="Return to the season", controller="seasons", action="show", key=params.seasonid)#
</div>

</cfoutput>
